import { createApp } from 'vue'//1.引入vue
// import './style.css'
import App from './App.vue'//1.引入App.vue
import router from './router/index'//1.引入router
import { createPinia } from 'pinia';//1.状态管理
import * as ElementPlusIconsVue from '@element-plus/icons-vue'//1.图标
import "./mock/index"
// import "@/router/guard"//1.路由守卫

const app = createApp(App)//2.App.vue挂载
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {//1.图标
    app.component(key, component)
  }
const pinia = createPinia();//2.状态管理

app.use(router)//2.路由
app.use(pinia);//3.状态管理
app.mount('#app')//3.App.vue挂载	